import mx from 'mxgraph';
import './Init';

const mxgraph = mx({
  mxBasePath: 'statics/mxgraph'
});
console.log(mxgraph);

//// decode bug https:////github.com/jgraph/mxgraph/issues/49
window.mxGraph = mxgraph.mxGraph;
window.mxGraphModel = mxgraph.mxGraphModel;
window.mxEditor = mxgraph.mxEditor;
window.mxGeometry = mxgraph.mxGeometry;
window.mxDefaultKeyHandler = mxgraph.mxDefaultKeyHandler;
window.mxDefaultPopupMenu = mxgraph.mxDefaultPopupMenu;
window.mxStylesheet = mxgraph.mxStylesheet;
window.mxDefaultToolbar = mxgraph.mxDefaultToolbar;
window.mxPoint = mxgraph.mxPoint;//// 重要增加 支持边线导入
window.mxArrow = mxgraph.mxArrow;

export default mxgraph;
